home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Bus / C / Commander 2.1 Demo .sit / Commander 2.1 Demo / 4D Reference Info Demo.rsrc / TEXT_5510_Mathematical Functions.txt < prev    next >
Encoding:
Text File  |  1994-11-09  |  1.7 KB  |  27 lines

  1. Mathematical Functions
  2.  
  3.  
  4. These functions in this section perform calculations on a series of values. The ¬†Average, ¬†Max, ¬†Min, ¬†Sum, Sum¬†squares, Std¬†deviation, and ¬†Variance functions can be applied to fields or subfields. In the case of a field, they are applied to a selection of records. In the case of a subfield, they are applied to a selection of the subrecords of the current record. Note that the Sum¬†squares, Std¬†deviation, and ¬†Variance functions can be used on a field only during printing.
  5.  
  6.       ¬†Average
  7.       ¬†Max
  8.       ¬†Min
  9.       ¬†Sum    
  10.         Std¬†deviation
  11.         Sum¬†squares    
  12.       ¬†Variance
  13.  
  14.  
  15. These functions work on numeric data only. Each of these functions returns a numeric value.
  16.  
  17.  
  18. Using a Field
  19.  
  20. When ¬†Average, ¬†Max, ¬†Min, or ¬†Sum are used on a field, they must load each record in the current selection to calculate the result. If there are many records, this process may take some time.
  21.  
  22. When these functions are used in a report, they behave differently than at other times. This is because the report itself must load each record. Use these functions in a layout procedure or script when you are printing with the PRINT¬†SELECTION command or when you are printing in the User environment by choosing Print from the File menu.
  23.  
  24. When you use these functions in a report, the values that are returned are reliable only at break level 0. Break processing should be turned on. This means that they are useful only at the end of a report after all the records have been processed. You only use the functions in a script for a non-enterable area that is included in the B0 Break area. The script assigns the value returned to the variable associated with the area.
  25.  
  26.  
  27.